﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;
namespace Server_NhaSach.DataTransferObject
{
    [DataContract]
    public class PhieuKHDatHangDTO
    {
        #region "Khai bao cac bien"
        private string _makhdh;
        
        private string _makho;
        private string _makh;

        private string _manv;
        private string _sochungtudh;
        
        private DateTime _ngaythangdh;
        
        private string _diachi;
        
        private string _ghichu;
        
        private double _tongtien;
        
        private double _tamung;
        
        private double _conlai;
       
        private DateTime _ngaybangiao;
        
        #endregion
        #region "Khai bao cac thuoc tinh"
        [DataMember]
        public string Makhdh
        {
            get { return _makhdh; }
            set { _makhdh = value; }
        }
        [DataMember]
        public string Makho
        {
            get { return _makho; }
            set { _makho = value; }
        }
        [DataMember]
        public string Makh
        {
            get { return _makh; }
            set { _makh = value; }
        }
        [DataMember]
        public string Manv
        {
            get { return _manv; }
            set { _manv = value; }
        }
        [DataMember]
        public string Sochungtudh
        {
            get { return _sochungtudh; }
            set { _sochungtudh = value; }
        }
        [DataMember]
        public DateTime Ngaythangdh
        {
            get { return _ngaythangdh; }
            set { _ngaythangdh = value; }
        }
        [DataMember]
        public string Diachi
        {
            get { return _diachi; }
            set { _diachi = value; }
        }
        [DataMember]
        public string Ghichu
        {
            get { return _ghichu; }
            set { _ghichu = value; }
        }
        [DataMember]
        public double Tongtien
        {
            get { return _tongtien; }
            set { _tongtien = value; }
        }
        [DataMember]
        public double Tamung
        {
            get { return _tamung; }
            set { _tamung = value; }
        }
        [DataMember]
        public double Conlai
        {
            get { return _conlai; }
            set { _conlai = value; }
        }
        [DataMember]
        public DateTime Ngaybangiao
        {
            get { return _ngaybangiao; }
            set { _ngaybangiao = value; }
        }
        #endregion
        #region "Khai bao cac constructor"
        public PhieuKHDatHangDTO() { }
        public PhieuKHDatHangDTO(string makhdh,string makho,string makh,string manv,string sochungtu,DateTime ngaythangdh,string diachi,string ghichudh,double tongtien,double tamung,double conlai,DateTime ngaybangiao)
        {
            this.Makhdh = makhdh;
            this.Makho = makho;
            this.Makh = makh;
            this.Manv = manv;
            this.Sochungtudh = sochungtu;
            this.Ngaythangdh = ngaythangdh;
            this.Diachi = diachi;
            this.Ghichu = ghichudh;
            this.Tongtien = tongtien;
            this.Tamung = tamung;
            this.Conlai = conlai;
            this.Ngaybangiao = ngaybangiao;
        }
        public PhieuKHDatHangDTO(PhieuKHDatHangDTO phieudh)
        {
            this.Makhdh = phieudh.Makhdh;
            this.Makho = phieudh.Makho;
            this.Makh = phieudh.Makh;
            this.Manv = phieudh.Manv;
            this.Sochungtudh = phieudh.Sochungtudh;
            this.Ngaythangdh = phieudh.Ngaythangdh;
            this.Diachi = phieudh.Diachi;
            this.Ghichu = phieudh.Ghichu;
            this.Tongtien = phieudh.Tongtien;
            this.Tamung = phieudh.Tamung;
            this.Conlai = phieudh.Conlai;
            this.Ngaybangiao = phieudh.Ngaybangiao;
        }
        #endregion
    }
}